
package com.dg.acb.utils;

public interface SimpleListener<Result> {
    /**
     * When task completed successfully, this method will be called.
     * 
     * @param ret Result
     */
    void onComplete(Result ret);

    /**
     * When Exception happens, this method will be called.
     * 
     * @param errorCode Error code
     * @param errorMsg Error message.
     */
    void onException(int errorCode, String errorMsg);
}
